﻿public class code055{
	public static void main (String[] args){
		int sum =0;
	    int i = 50;
	    while(i>=7){
	        if((i%7)==0)
	            sum=i+sum;
	        i--;
		}System.out.println(sum);
	}
}